from django.conf.urls import url

from . import views


urlpatterns = [

    url(r'^sms_codes/(?P<mobile>1[3-9]\d{9})/$', views.SmsCodeView.as_view(), name='sms_codes'),
    url(r'^login/$', views.UserLoginView.as_view()),
    url(r'^info/$', views.UserModelViewSet.as_view({'get': 'info'})),
    url(r'^synchronous_info/$', views.UserModelViewSet.as_view({'post': 'synchronous_info'})),
    url(r'^manageruser/$', views.UserModelViewSet.as_view({'get': 'list', 'post': 'create'})),
    url(r'^manageruser/(?P<pk>\d+)/$', views.UserModelViewSet.as_view({'get': 'retrieve', 'put': 'update'})),
    url(r'^authorization_mobile/$', views.UserModelViewSet.as_view({'post': 'authorization_mobile'})),
    url(r'^manager_info/$', views.UserModelViewSet.as_view({'get': 'manager_info'})),
    url(r'^invite_manager/$', views.UserModelViewSet.as_view({'post': 'invite_manager'})),
    url(r'^update_signature/$', views.UserModelViewSet.as_view({'post': 'update_signature'})),
    url(r'^smscodes/$', views.MerchantModelViewSet.as_view({'get': 'sms_codes'})),
    url(r'^merchant/$', views.MerchantModelViewSet.as_view({'get': 'list'})),
    url(r'^merchant/(?P<pk>\d+)/$', views.MerchantModelViewSet.as_view({'get': 'retrieve', 'post': 'create', 'put': 'update'})),
    url(r'^merchantinfo/(?P<pk>\d+)/$', views.MerchantModelViewSet.as_view({'get': 'retrieve'})),
    url(r'^up_merchant/$', views.MerchantModelViewSet.as_view({'post': 'up_merchant'})),
    url(r'^down_merchant/$', views.MerchantModelViewSet.as_view({'post': 'down_merchant'})),
    url(r'^check_merchant/$', views.MerchantModelViewSet.as_view({'post': 'check_merchant'})),
    url(r'^check_pay_qrcode/$', views.MerchantModelViewSet.as_view({'post': 'check_pay_qrcode'})),
    url(r'^check_business_qrcode/$', views.MerchantModelViewSet.as_view({'post': 'check_business_qrcode'})),
    url(r'^bind_business_qrcode/$', views.MerchantModelViewSet.as_view({'post': 'bind_business_qrcode'})),
    url(r'^open_is_mall/$', views.MerchantModelViewSet.as_view({'post': 'open_is_mall'})),
    url(r'^confirm_is_mall/$', views.MerchantModelViewSet.as_view({'post': 'confirm_is_mall'})),
    url(r'^order/$', views.OrderInfoModelViewSet.as_view({'get': 'list'})),
    url(r'^order/(?P<pk>\d+)/$', views.OrderInfoModelViewSet.as_view({'get': 'retrieve'})),
    url(r'^goods/$', views.GoodsModelViewSet.as_view({'get': 'list', 'post': 'create'})),
    url(r'^goods/(?P<pk>\d+)/$', views.GoodsModelViewSet.as_view({'get': 'retrieve', 'put': 'update', 'post': 'partial_update'})),
    url(r'^sweep_code_identification/$', views.GoodsModelViewSet.as_view({'get': 'sweep_code_identification'})),
    url(r'^upload_image/$', views.GoodsModelViewSet.as_view({'post': 'upload_image'})),
    url(r'^first_audit/$', views.GoodsModelViewSet.as_view({'post': 'first_audit'})),
    url(r'^check_coupon/$', views.OrderInfoModelViewSet.as_view({'post': 'check_coupon'})),
    url(r'^use_coupon/$', views.OrderInfoModelViewSet.as_view({'post': 'use_coupon'})),
    url(r'^alidiscountcoupon/$', views.AliDiscountCouponLevelModelViewSet.as_view({'get': 'list'})),
    url(r'^alidiscountcoupon/(?P<pk>\d+)/$', views.AliDiscountCouponLevelModelViewSet.as_view({'get': 'retrieve', 'post': 'partial_update', 'put': 'update'})),
    url(r'^alidiscountcouponmerchant/$', views.AliDiscountCouponMerchantModelViewSet.as_view({'get': 'list'})),
    url(r'^distributed_statistical/$', views.AliDiscountCouponLevelModelViewSet.as_view({'get': 'distributed_statistical'})),
    url(r'^alidiscountcouponinfo/$', views.AliDiscountCouponInfoModelViewSet.as_view({'get': 'list'})),
    url(r'^alidiscountcouponinfo/(?P<pk>\d+)/$', views.AliDiscountCouponInfoModelViewSet.as_view({'get': 'retrieve', 'delete': 'destroy'})),
    url(r'^activitylevel/$', views.ActivityLevelModelViewSet.as_view({'get': 'list'})),
    url(r'^activitylevel/(?P<pk>\d+)/$', views.ActivityLevelModelViewSet.as_view({'get': 'retrieve', 'post': 'partial_update', 'put': 'update'})),
    url(r'^activitydata/$', views.ActivityDataModelViewSet.as_view({'get': 'list'})),
    url(r'^activitydata/(?P<pk>\d+)/$', views.ActivityDataModelViewSet.as_view({'get': 'retrieve', 'delete': 'destroy'})),
    url(r'^sms_codes/$', views.ActivityLevelModelViewSet.as_view({'get': 'sms_codes'})),
    url(r'^level/$', views.LevelModelViewSet.as_view({'get': 'list'})),
    url(r'^cashactivitylevel/$', views.CashActivityLevelModelViewSet.as_view({'get': 'list'})),
    url(r'^cashactivitylevel/(?P<pk>\d+)/$', views.CashActivityLevelModelViewSet.as_view({'get': 'retrieve', 'post': 'partial_update', 'put': 'update'})),
    url(r'^cash_distributed_statistical/$', views.CashActivityLevelModelViewSet.as_view({'get': 'cash_distributed_statistical'})),
    url(r'^cashactivitydata/$', views.CashActivityDataModelViewSet.as_view({'get': 'list'})),
    url(r'^cashactivitydata/(?P<pk>\d+)/$', views.CashActivityDataModelViewSet.as_view({'get': 'retrieve', 'delete': 'destroy'})),
    url(r'^customizeactivitylevel/$', views.CustomizeActivityLevelModelViewSet.as_view({'get': 'list'})),
    url(r'^customizeactivitylevel/(?P<pk>\d+)/$', views.CustomizeActivityLevelModelViewSet.as_view({'get': 'retrieve', 'post': 'partial_update', 'put': 'update'})),
    url(r'^customizeactivitydata/$', views.CustomizeActivityFlipCARDSModelViewSet.as_view({'get': 'list'})),
    url(r'^customizeactivitydata/(?P<pk>\d+)/$', views.CustomizeActivityFlipCARDSModelViewSet.as_view({'get': 'retrieve'})),
    url(r'^customeruserviceinviterrecord/$', views.CustomerUserViceInviterRecordModelViewSet.as_view({'get': 'list'})),
    url(r'^merchantbusinessqrcodevisit/$', views.MerchantBusinessQRCodeVisitModelViewSet.as_view({'get': 'list'})),
    url(r'^merchantbusinessqrcode/$', views.MerchantBusinessQRCodeModelViewSet.as_view({'get': 'list'})),
    url(r'^merchantbusinessqrcode/(?P<pk>\d+)/$', views.MerchantBusinessQRCodeModelViewSet.as_view({'get': 'retrieve', 'put': 'update'})),
    url(r'^elect/$', views.NewYearsShoppingFestivalElectModelViewSet.as_view({'get': 'list'})),
    url(r'^elect/(?P<pk>\d+)/$', views.NewYearsShoppingFestivalElectModelViewSet.as_view({'get': 'retrieve'})),
    url(r'^elect_product/$', views.NewYearsShoppingFestivalElectProductModelViewSet.as_view({'get': 'list', 'post': 'create'})),
    url(r'^elect_product/(?P<pk>\d+)/$', views.NewYearsShoppingFestivalElectProductModelViewSet.as_view({'get': 'retrieve', 'put': 'update', 'post': 'partial_update'})),
    url(r'^product_pic/$', views.NewYearsShoppingFestivalElectProductModelViewSet.as_view({'post': 'product_pic'})),
    url(r'^leaderboard/$', views.NewYearsShoppingFestivalElectProductModelViewSet.as_view({'get': 'leaderboard'})),
    url(r'^goodscomment/$', views.GoodsCommentModelViewSet.as_view({'get': 'list'})),
    url(r'^goodstagactivity/$', views.GoodsTagActivityLevelRelationModelViewSet.as_view({'get': 'list'})),
    url(r'^cashactivitywhitetable/$', views.CashActivityWhiteTableModelViewSet.as_view({'get': 'list'})),

]